home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / disableRenderabilityAttrs.me < prev    next >
Encoding:
Text File  |  2003-07-17  |  2.2 KB  |  61 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //<name disableRenderability>
  18. //<owner "Alias|Wavefront Unsupported">
  19. //
  20. //<synopsis>
  21. //        disableRenderabilityAttrs (string $shapeName)
  22. //
  23. //<returns>
  24. //        None
  25. //
  26. //<description>
  27. //      Script for disabling the renderability attributes on a shape, including:
  28. //        primaryVisibility, castsShadows, motionBlur, visibleInReflections,
  29. //        visibleInRefractions, and receiveShadows.
  30. //
  31. //<flags>
  32. //      string $shapeName: the shape that the command will act on
  33. //
  34. //<examples>
  35. //  To disable the renderability of a sphere that is used as a container for
  36. //  dynamic attributes, but does not need to be rendered:
  37. //   
  38. //        disableRenderabilityAttrs nurbsSphereShape1;
  39. //
  40. //
  41. //</doc>
  42. /////////////////////////////////////////////////////////////////////////
  43.  
  44. // Method: disableRenderabilityAttrs
  45. //
  46. // Description:
  47. //      Script for disabling the renderability attributes on a shape, including:
  48. //        primaryVisibility, castsShadows, motionBlur, visibleInReflections,
  49. //        visibleInRefractions, and receiveShadows.
  50. //
  51. global proc
  52. disableRenderabilityAttrs(string $shapeName)
  53. {
  54.     setAttr ($shapeName+".primaryVisibility") 0;
  55.     setAttr ($shapeName+".castsShadows") 0;
  56.     setAttr ($shapeName+".motionBlur") 0;
  57.     setAttr ($shapeName+".visibleInReflections") 0;
  58.     setAttr ($shapeName+".visibleInRefractions") 0;
  59.     setAttr ($shapeName+".receiveShadows") 0;
  60. }
  61.